﻿using CatUtils.Utils.Currency.IoUtils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArticleContentCreate.Utils
{
    internal class LocalStaticvalue
    { /*
         ViewHelper
         */
        public static bool ComboxShowFlag = false;
        private static bool printFlag = true;
        private static string tempPath = ".\\TempPath\\";
        private static string downloadPath = TempPath + "Download\\";

        private static string binPath = ".\\Bin\\";

        private static string oldLogFloderPath = tempPath + "OldLog\\";
        private static string runLogPath = TempPath + "Runlog.txt";

        private static List<String> runLogList = FileHelper.ReadAllLine(RunLogPath);

        //下载文件的辅助
        private static string ImgTemp = TempPath + "DownloadImg\\";

        /* 屏蔽关键词*/

        private static string excludePath = BinPath + "ExcludeKey.txt";

        private static string webSiteInfo = tempPath + "WebsiteInfo\\";

        /// <summary>
        /// 控制日志写入的flag
        /// </summary>
        public static bool PrintFlag { get => printFlag; set => printFlag = value; }

        /// <summary>
        /// 缓存路径
        /// </summary>
        public static string TempPath { get => tempPath; set => tempPath = value; }

        public static string BinPath { get => binPath; set => binPath = value; }

        public static string RunLogPath { get => runLogPath; set => runLogPath = value; }
        public static string ImgTemp1 { get => ImgTemp; set => ImgTemp = value; }

        /// <summary>
        /// 下载文件夹
        /// </summary>
        public static string DownloadPath { get => downloadPath; set => downloadPath = value; }

        /// <summary>
        /// 放置旧的LOG
        /// </summary>
        public static string OldLogPath { get => oldLogFloderPath; set => oldLogFloderPath = value; }

        /// <summary>
        /// 屏蔽关键词的路径
        /// </summary>
        public static string ExcludePath { get => excludePath; set => excludePath = value; }

        /// <summary>
        /// 日志列表
        /// </summary>
        public static List<string> RunLogList { get => runLogList; set => runLogList = value; }

        /// <summary>
        /// 存放网站扩展数据
        /// </summary>
        public static string WebSiteInfo { get => webSiteInfo; set => webSiteInfo = value; }
    }
}